﻿<ResourceDictionary xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
                    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
                    xmlns:d="http://schemas.microsoft.com/expression/blend/2008" 
                    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"                     
                    mc:Ignorable="d">

    <LinearGradientBrush x:Key="DiagramGradientBrush" EndPoint="0.439,0.967" StartPoint="0.561,0.033">
        <GradientStop Color="#FF202020" Offset="0" />
        <GradientStop Color="#FF545454" Offset="1" />
    </LinearGradientBrush>
    <LinearGradientBrush x:Key="InputBackgroundBrush" EndPoint="0.504,0.351" StartPoint="0.504,-0.319">
        <GradientStop Color="#FF000000" Offset="0.416" />
        <GradientStop Color="#FF4A5790" Offset="0.54" />
    </LinearGradientBrush>
    <Style x:Key="NormalButtonStyle" TargetType="{x:Type Button}">
        <Setter Property="Foreground" Value="#FFFFFF" />
        <Setter Property="Width" Value="60" />
        <Setter Property="Height" Value="20" />
        <Setter Property="FontSize" Value="10" />
        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate TargetType="{x:Type Button}">
                    <Grid>
                        <Rectangle x:Name="Rectangle" Stroke="#FF051F42" StrokeMiterLimit="1.000000" StrokeThickness="0.500000" RadiusX="5" RadiusY="5">
                            <Rectangle.Fill>
                                <LinearGradientBrush EndPoint="0.501,0.039" StartPoint="0.501,0.971">
                                    <GradientStop Color="#FF1F317D" Offset="0.101" />
                                    <GradientStop Color="#FF1F317D" Offset="0.49" />
                                    <GradientStop Color="#FF6C8EBD" Offset="0.51" />
                                    <GradientStop Color="#FF283D8C" Offset="0" />
                                    <GradientStop Color="#FF7094C7" Offset="0.986" />
                                </LinearGradientBrush>
                            </Rectangle.Fill>
                        </Rectangle>
                        <ContentPresenter SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}" HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}" VerticalAlignment="{TemplateBinding VerticalContentAlignment}" RecognizesAccessKey="True" />
                    </Grid>
                    <ControlTemplate.Triggers>
                        <Trigger Property="IsKeyboardFocused" Value="true" />
                        <Trigger Property="IsMouseOver" Value="true">
                            <Setter Property="Fill" TargetName="Rectangle">
                                <Setter.Value>
                                    <LinearGradientBrush EndPoint="0.501,0.039" StartPoint="0.501,0.971">
                                        <GradientStop Color="#FF2C558C" Offset="0.101" />
                                        <GradientStop Color="#FF1F317D" Offset="0.49" />
                                        <GradientStop Color="#FF9DB5D7" Offset="0.51" />
                                        <GradientStop Color="#FF244AAF" Offset="0" />
                                        <GradientStop Color="#FF87A4D9" Offset="0.986" />
                                    </LinearGradientBrush>
                                </Setter.Value>
                            </Setter>
                        </Trigger>
                    </ControlTemplate.Triggers>
                </ControlTemplate>
            </Setter.Value>
        </Setter>
    </Style>
    <Style x:Key="GlassMenuButtonDeconnected" TargetType="{x:Type Button}">
        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate TargetType="{x:Type Button}">
                    <ControlTemplate.Resources>
                        <Storyboard x:Key="AddGlow">
                            <ColorAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="ellipse" Storyboard.TargetProperty="(Shape.Fill).(SolidColorBrush.Color)">
                                <SplineColorKeyFrame KeyTime="00:00:00" Value="#01186CCE"/>
                                <SplineColorKeyFrame KeyTime="00:00:00.2000000" Value="#FF186CCE"/>
                            </ColorAnimationUsingKeyFrames>
                            <ColorAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="ellipse1" Storyboard.TargetProperty="(Shape.Fill).(GradientBrush.GradientStops)[4].(GradientStop.Color)">
                                <SplineColorKeyFrame KeyTime="00:00:00.2000000" Value="#FF1B48FF"/>
                            </ColorAnimationUsingKeyFrames>
                        </Storyboard>
                        <Storyboard x:Key="RemoveGlow">
                            <ColorAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="ellipse" Storyboard.TargetProperty="(Shape.Fill).(SolidColorBrush.Color)">
                                <SplineColorKeyFrame KeyTime="00:00:00" Value="#FF186CCE"/>
                                <SplineColorKeyFrame KeyTime="00:00:00.3000000" Value="#000062D6"/>
                            </ColorAnimationUsingKeyFrames>
                            <ColorAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="ellipse1" Storyboard.TargetProperty="(Shape.Fill).(GradientBrush.GradientStops)[4].(GradientStop.Color)">
                                <SplineColorKeyFrame KeyTime="00:00:00" Value="#FF1B48FF"/>
                                <SplineColorKeyFrame KeyTime="00:00:00.3000000" Value="#FF0026C0"/>
                            </ColorAnimationUsingKeyFrames>
                        </Storyboard>
                    </ControlTemplate.Resources>
                    <Canvas HorizontalAlignment="Stretch" VerticalAlignment="Top" d:DesignHeight="53.334" d:DesignWidth="72" Width="80.875" Height="80.209">
                        <Ellipse x:Name="ellipse" Width="94.43" Height="94.43" Canvas.Left="-7.301" Canvas.Top="-7.33" Fill="#00186CCE">
                            <Ellipse.Effect>
                                <BlurEffect Radius="18"/>
                            </Ellipse.Effect>
                        </Ellipse>
                        <Ellipse Width="78.43" Height="78.43" Canvas.Left="0.699" Canvas.Top="0.67">
                            <Ellipse.Fill>
                                <LinearGradientBrush StartPoint="0.412954,1.01152" EndPoint="0.412954,0.0671538">
                                    <GradientStop Color="#FFFFFFFF" Offset="0.179688"/>
                                    <GradientStop Color="#FFBBF0FE" Offset="0.300801"/>
                                    <GradientStop Color="#FF77E1FE" Offset="0.334961"/>
                                    <GradientStop Color="#FF3B84E1" Offset="0.500431"/>
                                    <GradientStop Color="#FF0027C4" Offset="0.679688"/>
                                    <GradientStop Color="#FFFFFFFF" Offset="1"/>
                                </LinearGradientBrush>
                            </Ellipse.Fill>
                        </Ellipse>
                        <Ellipse x:Name="ellipse1" Width="72.946" Height="72.946" Canvas.Left="3.441" Canvas.Top="3.441">
                            <Ellipse.Fill>
                                <RadialGradientBrush RadiusX="0.684615" RadiusY="0.684615" Center="0.492308,1.16154" GradientOrigin="0.492308,1.16154">
                                    <RadialGradientBrush.RelativeTransform>
                                        <TransformGroup>
                                            <RotateTransform CenterX="0.492308" CenterY="1.16154" Angle="-90"/>
                                        </TransformGroup>
                                    </RadialGradientBrush.RelativeTransform>
                                    <GradientStop Color="#FFFFFFFF" Offset="0"/>
                                    <GradientStop Color="#FFBBF0FE" Offset="0.335156"/>
                                    <GradientStop Color="#FF77E1FE" Offset="0.429688"/>
                                    <GradientStop Color="#FF3B84E1" Offset="0.703439"/>
                                    <GradientStop Color="#FF0026C0" Offset="1"/>
                                </RadialGradientBrush>
                            </Ellipse.Fill>
                        </Ellipse>
                        <Path Width="78.104" Height="43.638" Canvas.Left="0.862" Canvas.Top="0.258" Stretch="Fill" Data="F1 M 230.352,232.662C 243.841,232.662 254.777,243.597 254.777,257.087C 254.777,263.616 242.537,255.751 230.727,255.96C 218.137,256.182 205.926,264.047 205.926,257.087C 205.926,243.597 216.862,232.662 230.352,232.662">
                            <Path.Fill>
                                <RadialGradientBrush RadiusX="0.874382" RadiusY="0.488538" Center="0.4988,0.953052" GradientOrigin="0.4988,0.953052">
                                    <RadialGradientBrush.RelativeTransform>
                                        <TransformGroup>
                                            <RotateTransform CenterX="0.4988" CenterY="0.953052" Angle="-90"/>
                                        </TransformGroup>
                                    </RadialGradientBrush.RelativeTransform>
                                    <GradientStop Color="#00FFFCF9" Offset="0.68457"/>
                                    <GradientStop Color="#5CFFFDFC" Offset="0.90537"/>
                                    <GradientStop Color="#B8FFFFFF" Offset="1"/>
                                </RadialGradientBrush>
                            </Path.Fill>
                        </Path>
                        <Path Width="78.104" Height="43.638" Canvas.Left="0.862" Canvas.Top="0.258" Stretch="Fill" Data="F1 M 230.352,232.662C 243.841,232.662 254.777,243.597 254.777,257.087C 254.777,263.616 242.537,255.751 230.727,255.96C 218.137,256.182 205.926,264.047 205.926,257.087C 205.926,243.597 216.862,232.662 230.352,232.662">
                            <Path.Fill>
                                <LinearGradientBrush StartPoint="0.5922,1.22306" EndPoint="1.74592,1.22306">
                                    <LinearGradientBrush.RelativeTransform>
                                        <TransformGroup>
                                            <SkewTransform CenterX="0.5922" CenterY="1.22306" AngleX="30.4319" AngleY="0"/>
                                            <RotateTransform CenterX="0.5922" CenterY="1.22306" Angle="247.675"/>
                                        </TransformGroup>
                                    </LinearGradientBrush.RelativeTransform>
                                    <GradientStop Color="#00FFFCF9" Offset="0"/>
                                    <GradientStop Color="#5CFFFDFC" Offset="0.879997"/>
                                    <GradientStop Color="#B8FFFFFF" Offset="1"/>
                                </LinearGradientBrush>
                            </Path.Fill>
                        </Path>
                        <Path x:Name="Home" Fill="#FF6696FF" Stretch="Fill" StrokeLineJoin="Round" StrokeThickness="0.5" Width="30.024" Height="32.344" Canvas.Left="24.437" Canvas.Top="25.167" Data="M-206.72917,179.66667 L-261.31267,216.08301 -248.97896,215.41667 -248.97896,289.41735 -217.31258,289.08369 -216.64592,260.41684 -201.97938,260.08351 -201.64622,288.08368 -166.31305,288.08368 -165.98022,223.41661 -165.64706,215.41656 -153.9804,215.41656 -183.64675,192.74975 -183.64675,175.74965 -194.97991,173.74964 -194.97991,186.74972">
                            <Path.Stroke>
                                <LinearGradientBrush StartPoint="0.563422,0.756458" EndPoint="1.6351,0.756458">
                                    <LinearGradientBrush.RelativeTransform>
                                        <TransformGroup>
                                            <SkewTransform CenterX="0.563422" CenterY="0.756458" AngleX="-32.8094" AngleY="0"/>
                                            <RotateTransform CenterX="0.563422" CenterY="0.756458" Angle="208.595"/>
                                        </TransformGroup>
                                    </LinearGradientBrush.RelativeTransform>
                                    <GradientStop Color="#00FFFFFF" Offset="0.00913242"/>
                                    <GradientStop Color="#FFFFFFFF" Offset="1"/>
                                </LinearGradientBrush>
                            </Path.Stroke>
                        </Path>
                    </Canvas>
                    <ControlTemplate.Triggers>
                        <EventTrigger RoutedEvent="Mouse.MouseLeave">
                            <BeginStoryboard x:Name="RemoveGlow_BeginStoryboard" Storyboard="{StaticResource RemoveGlow}"/>
                        </EventTrigger>
                        <EventTrigger RoutedEvent="Mouse.MouseEnter">
                            <BeginStoryboard Storyboard="{StaticResource AddGlow}"/>
                        </EventTrigger>
                        <Trigger Property="IsFocused" Value="True"/>
                        <Trigger Property="IsDefaulted" Value="True"/>
                        <Trigger Property="IsMouseOver" Value="True"/>
                        <Trigger Property="IsPressed" Value="True"/>
                        <Trigger Property="IsEnabled" Value="False"/>
                        <Trigger Property="IsPressed" Value="True">
                            <Setter Property="Fill" TargetName="ellipse1">
                                <Setter.Value>
                                    <RadialGradientBrush Center="0.492308,1.16154" GradientOrigin="0.492308,1.16154" RadiusX="0.684615" RadiusY="0.684615">
                                        <RadialGradientBrush.RelativeTransform>
                                            <TransformGroup>
                                                <RotateTransform Angle="-90" CenterX="0.492308" CenterY="1.16154"/>
                                            </TransformGroup>
                                        </RadialGradientBrush.RelativeTransform>
                                        <GradientStop Color="White" Offset="0"/>
                                        <GradientStop Color="#FFBBF0FE" Offset="0.335156"/>
                                        <GradientStop Color="#FF77E1FE" Offset="0.429688"/>
                                        <GradientStop Color="#FF3B84E1" Offset="0.703439"/>
                                        <GradientStop Color="#FF001673" Offset="1"/>
                                    </RadialGradientBrush>
                                </Setter.Value>
                            </Setter>
                        </Trigger>
                    </ControlTemplate.Triggers>
                </ControlTemplate>
            </Setter.Value>
        </Setter>
    </Style>
    <Style x:Key="GlassMenuButtonConnected" TargetType="{x:Type Button}">
        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate TargetType="{x:Type Button}">
                    <ControlTemplate.Resources>
                        <Storyboard x:Key="AddGlow">
                            <ColorAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="ellipse" Storyboard.TargetProperty="(Shape.Fill).(SolidColorBrush.Color)">
                                <SplineColorKeyFrame KeyTime="00:00:00" Value="#01CE6C18"/>
                                <SplineColorKeyFrame KeyTime="00:00:00.2000000" Value="#FFFC2102"/>
                            </ColorAnimationUsingKeyFrames>
                            <ColorAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="ellipse1" Storyboard.TargetProperty="(Shape.Fill).(GradientBrush.GradientStops)[4].(GradientStop.Color)">
                                <SplineColorKeyFrame KeyTime="00:00:00.2000000" Value="#FFFF481B"/>
                            </ColorAnimationUsingKeyFrames>
                        </Storyboard>
                        <Storyboard x:Key="RemoveGlow">
                            <ColorAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="ellipse" Storyboard.TargetProperty="(Shape.Fill).(SolidColorBrush.Color)">
                                <SplineColorKeyFrame KeyTime="00:00:00" Value="#FFFC2102"/>
                                <SplineColorKeyFrame KeyTime="00:00:00.3000000" Value="#00D66200"/>
                            </ColorAnimationUsingKeyFrames>
                            <ColorAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="ellipse1" Storyboard.TargetProperty="(Shape.Fill).(GradientBrush.GradientStops)[4].(GradientStop.Color)">
                                <SplineColorKeyFrame KeyTime="00:00:00" Value="#FFDD481B"/>
                                <SplineColorKeyFrame KeyTime="00:00:00.3000000" Value="#FFC02600"/>
                            </ColorAnimationUsingKeyFrames>
                        </Storyboard>
                    </ControlTemplate.Resources>
                    <Canvas HorizontalAlignment="Stretch" VerticalAlignment="Top" d:DesignHeight="53.334" d:DesignWidth="72" Width="80.875" Height="80.209">
                        <Ellipse x:Name="ellipse" Width="94.43" Height="94.43" Canvas.Left="-7.301" Canvas.Top="-7.33" Fill="#00186CCE">
                            <Ellipse.Effect>
                                <BlurEffect Radius="18"/>
                            </Ellipse.Effect>
                        </Ellipse>
                        <Ellipse Width="78.43" Height="78.43" Canvas.Left="0.699" Canvas.Top="0.67">
                            <Ellipse.Fill>
                                <LinearGradientBrush StartPoint="0.412954,1.01152" EndPoint="0.412954,0.0671538">
                                    <GradientStop Color="#FFFFEAE8" Offset="0.179688"/>
                                    <GradientStop Color="#FFFEC0BB" Offset="0.300801"/>
                                    <GradientStop Color="#FFFE8E77" Offset="0.334961"/>
                                    <GradientStop Color="#FEF31B1B" Offset="0.500431"/>
                                    <GradientStop Color="#FFC42700" Offset="0.679688"/>
                                    <GradientStop Color="#FFFFEAE8" Offset="1"/>
                                </LinearGradientBrush>
                            </Ellipse.Fill>
                        </Ellipse>
                        <Ellipse x:Name="ellipse1" Width="72.946" Height="72.946" Canvas.Left="3.441" Canvas.Top="3.441">
                            <Ellipse.Fill>
                                <RadialGradientBrush RadiusX="0.684615" RadiusY="0.684615" Center="0.492308,1.16154" GradientOrigin="0.492308,1.16154">
                                    <RadialGradientBrush.RelativeTransform>
                                        <TransformGroup>
                                            <RotateTransform CenterX="0.492308" CenterY="1.16154" Angle="-90"/>
                                        </TransformGroup>
                                    </RadialGradientBrush.RelativeTransform>
                                    <GradientStop Color="#FFFFFFFF" Offset="0"/>
                                    <GradientStop Color="#FFFED3BB" Offset="0.335156"/>
                                    <GradientStop Color="#FFFEA177" Offset="0.429688"/>
                                    <GradientStop Color="#FFEE3319" Offset="0.703439"/>
                                    <GradientStop Color="#FFFA3403" Offset="1"/>
                                </RadialGradientBrush>
                            </Ellipse.Fill>
                        </Ellipse>
                        <Path x:Name="Home" Fill="#FFE80B03" Stretch="Fill" StrokeLineJoin="Round" StrokeThickness="0.5" Width="30.024" Height="32.344" Canvas.Left="24.437" Canvas.Top="25.167" Data="M-206.72917,179.66667 L-261.31267,216.08301 -248.97896,215.41667 -248.97896,289.41735 -217.31258,289.08369 -216.64592,260.41684 -201.97938,260.08351 -201.64622,288.08368 -166.31305,288.08368 -165.98022,223.41661 -165.64706,215.41656 -153.9804,215.41656 -183.64675,192.74975 -183.64675,175.74965 -194.97991,173.74964 -194.97991,186.74972">
                            <Path.Stroke>
                                <LinearGradientBrush StartPoint="0.563422,0.756458" EndPoint="1.6351,0.756458">
                                    <LinearGradientBrush.RelativeTransform>
                                        <TransformGroup>
                                            <SkewTransform CenterX="0.563422" CenterY="0.756458" AngleX="-32.8094" AngleY="0"/>
                                            <RotateTransform CenterX="0.563422" CenterY="0.756458" Angle="208.595"/>
                                        </TransformGroup>
                                    </LinearGradientBrush.RelativeTransform>
                                    <GradientStop Color="#00FFFFFF" Offset="0.00913242"/>
                                    <GradientStop Color="#FFFFFFFF" Offset="1"/>
                                </LinearGradientBrush>
                            </Path.Stroke>
                        </Path>
                        <Path Width="78.104" Height="43.638" Canvas.Left="0.862" Canvas.Top="0.258" Stretch="Fill" Data="F1 M 230.352,232.662C 243.841,232.662 254.777,243.597 254.777,257.087C 254.777,263.616 242.537,255.751 230.727,255.96C 218.137,256.182 205.926,264.047 205.926,257.087C 205.926,243.597 216.862,232.662 230.352,232.662">
                            <Path.Fill>
                                <RadialGradientBrush RadiusX="0.874382" RadiusY="0.488538" Center="0.4988,0.953052" GradientOrigin="0.4988,0.953052">
                                    <RadialGradientBrush.RelativeTransform>
                                        <TransformGroup>
                                            <RotateTransform CenterX="0.4988" CenterY="0.953052" Angle="-90"/>
                                        </TransformGroup>
                                    </RadialGradientBrush.RelativeTransform>
                                    <GradientStop Color="#00F9FCFF" Offset="0.68457"/>
                                    <GradientStop Color="#5CFCFDFF" Offset="0.90537"/>
                                    <GradientStop Color="#B8FFFFFF" Offset="1"/>
                                </RadialGradientBrush>
                            </Path.Fill>
                        </Path>
                        <Path Width="78.104" Height="43.638" Canvas.Left="0.862" Canvas.Top="0.258" Stretch="Fill" Data="F1 M 230.352,232.662C 243.841,232.662 254.777,243.597 254.777,257.087C 254.777,263.616 242.537,255.751 230.727,255.96C 218.137,256.182 205.926,264.047 205.926,257.087C 205.926,243.597 216.862,232.662 230.352,232.662">
                            <Path.Fill>
                                <LinearGradientBrush StartPoint="0.5922,1.22306" EndPoint="1.74592,1.22306">
                                    <LinearGradientBrush.RelativeTransform>
                                        <TransformGroup>
                                            <SkewTransform CenterX="0.5922" CenterY="1.22306" AngleX="30.4319" AngleY="0"/>
                                            <RotateTransform CenterX="0.5922" CenterY="1.22306" Angle="247.675"/>
                                        </TransformGroup>
                                    </LinearGradientBrush.RelativeTransform>
                                    <GradientStop Color="#00F9FCFF" Offset="0"/>
                                    <GradientStop Color="#5CFCFDFF" Offset="0.879997"/>
                                    <GradientStop Color="#B8FFFFFF" Offset="1"/>
                                </LinearGradientBrush>
                            </Path.Fill>
                        </Path>
                    </Canvas>
                    <ControlTemplate.Triggers>
                        <EventTrigger RoutedEvent="Mouse.MouseLeave">
                            <BeginStoryboard x:Name="RemoveGlow_BeginStoryboard" Storyboard="{StaticResource RemoveGlow}"/>
                        </EventTrigger>
                        <EventTrigger RoutedEvent="Mouse.MouseEnter">
                            <BeginStoryboard Storyboard="{StaticResource AddGlow}"/>
                        </EventTrigger>
                        <Trigger Property="IsFocused" Value="True"/>
                        <Trigger Property="IsDefaulted" Value="True"/>
                        <Trigger Property="IsMouseOver" Value="True"/>
                        <Trigger Property="IsPressed" Value="True"/>
                        <Trigger Property="IsEnabled" Value="False"/>
                        <Trigger Property="IsPressed" Value="True">
                            <Setter Property="Fill" TargetName="ellipse1">
                                <Setter.Value>
                                    <RadialGradientBrush Center="0.492308,1.16154" GradientOrigin="0.492308,1.16154" RadiusX="0.684615" RadiusY="0.684615">
                                        <RadialGradientBrush.RelativeTransform>
                                            <TransformGroup>
                                                <RotateTransform Angle="-90" CenterX="0.492308" CenterY="1.16154"/>
                                            </TransformGroup>
                                        </RadialGradientBrush.RelativeTransform>
                                        <GradientStop Color="White" Offset="0"/>
                                        <GradientStop Color="#FFFED6BB" Offset="0.335156"/>
                                        <GradientStop Color="#FFFEA177" Offset="0.429688"/>
                                        <GradientStop Color="#FFDA1605" Offset="0.703439"/>
                                        <GradientStop Color="#FFCB2700" Offset="1"/>
                                    </RadialGradientBrush>
                                </Setter.Value>
                            </Setter>
                        </Trigger>
                    </ControlTemplate.Triggers>
                </ControlTemplate>
            </Setter.Value>
        </Setter>
    </Style>
    <Style x:Key="StylishBorder" TargetType="{x:Type Border}">
        <Setter Property="BorderBrush" Value="Silver" />
        <Setter Property="BorderThickness" Value="1" />
        <Setter Property="CornerRadius" Value="20" />
        <Setter Property="HorizontalAlignment" Value="Stretch" />
        <Setter Property="VerticalAlignment" Value="Stretch" />
        <Setter Property="Margin" Value="10" />
    </Style>
    <Style x:Key="RoundButtonStyle" TargetType="Button">
        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate TargetType="Button">
                    <Grid>
                        <VisualStateManager.VisualStateGroups>
                            <VisualStateGroup x:Name="CommonStates">
                                <VisualState x:Name="Normal"/>
                                <VisualState x:Name="MouseOver">
                                    <Storyboard>
                                        <DoubleAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="ellipse1" Storyboard.TargetProperty="(UIElement.Opacity)">
                                            <EasingDoubleKeyFrame KeyTime="00:00:00.2000000" Value="0.1"/>
                                        </DoubleAnimationUsingKeyFrames>
                                    </Storyboard>
                                </VisualState>
                                <VisualState x:Name="Pressed">
                                    <Storyboard>
                                        <DoubleAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="ellipse" Storyboard.TargetProperty="(Shape.StrokeThickness)">
                                            <EasingDoubleKeyFrame KeyTime="00:00:00.1000000" Value="2"/>
                                        </DoubleAnimationUsingKeyFrames>
                                        <ObjectAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="ellipse1" Storyboard.TargetProperty="(FrameworkElement.Margin)">
                                            <DiscreteObjectKeyFrame KeyTime="00:00:00.1000000">
                                                <DiscreteObjectKeyFrame.Value>
                                                    <Thickness>2,2,3,4</Thickness>
                                                </DiscreteObjectKeyFrame.Value>
                                            </DiscreteObjectKeyFrame>
                                        </ObjectAnimationUsingKeyFrames>
                                        <DoubleAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="ellipse1" Storyboard.TargetProperty="(UIElement.Opacity)">
                                            <EasingDoubleKeyFrame KeyTime="00:00:00.1000000" Value="0.1"/>
                                        </DoubleAnimationUsingKeyFrames>
                                    </Storyboard>
                                </VisualState>
                                <VisualState x:Name="Disabled">
                                    <Storyboard>
                                        <DoubleAnimationUsingKeyFrames BeginTime="00:00:00" Duration="00:00:00.0010000" Storyboard.TargetName="ellipse1" Storyboard.TargetProperty="(UIElement.Opacity)">
                                            <EasingDoubleKeyFrame KeyTime="00:00:00" Value="0"/>
                                        </DoubleAnimationUsingKeyFrames>

                                        <DoubleAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="ellipse" Storyboard.TargetProperty="(Shape.StrokeThickness)">
                                            <EasingDoubleKeyFrame KeyTime="00:00:00.1000000" Value="0"/>
                                        </DoubleAnimationUsingKeyFrames>

                                    </Storyboard>
                                </VisualState>
                            </VisualStateGroup>
                            <VisualStateGroup x:Name="FocusStates">
                                <VisualState x:Name="Focused"/>
                                <VisualState x:Name="Unfocused"/>
                            </VisualStateGroup>
                        </VisualStateManager.VisualStateGroups>
                        <Grid.RowDefinitions>
                            <RowDefinition Height="0.08*"/>
                            <RowDefinition Height="0.84*"/>
                            <RowDefinition Height="0.08*"/>
                        </Grid.RowDefinitions>
                        <Grid.ColumnDefinitions>
                            <ColumnDefinition Width="0.08*"/>
                            <ColumnDefinition Width="0.84*"/>
                            <ColumnDefinition Width="0.08*"/>
                        </Grid.ColumnDefinitions>
                        <Ellipse Grid.ColumnSpan="3" Grid.RowSpan="3" Margin="1,1,1,1" Stroke="#FF8C8C8C">
                            <Ellipse.Fill>
                                <LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
                                    <GradientStop Color="#FF343434" Offset="0.63"/>
                                    <GradientStop Color="#FFFFFFFF" Offset="0.158"/>
                                    <GradientStop Color="#FFB3B3B3" Offset="1"/>
                                    <GradientStop Color="#FFE0E0E0" Offset="0"/>
                                </LinearGradientBrush>
                            </Ellipse.Fill>
                        </Ellipse>
                        <Grid Grid.Column="1" Grid.ColumnSpan="1" Grid.Row="1" Grid.RowSpan="1">
                            <Grid.RowDefinitions>
                                <RowDefinition Height="0.033*"/>
                                <RowDefinition Height="0.6*"/>
                                <RowDefinition Height="0.367*"/>
                            </Grid.RowDefinitions>
                            <Grid.ColumnDefinitions>
                                <ColumnDefinition Width="0.114*"/>
                                <ColumnDefinition Width="0.772*"/>
                                <ColumnDefinition Width="0.114*"/>
                            </Grid.ColumnDefinitions>
                            <Ellipse StrokeThickness="2" VerticalAlignment="Stretch" Grid.ColumnSpan="3" Grid.RowSpan="3" x:Name="ellipse" Fill="{TemplateBinding Background}">
                                <Ellipse.Stroke>
                                    <LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
                                        <GradientStop Color="#FF6A6A6A" Offset="0"/>
                                        <GradientStop Color="#FFFFFFFF" Offset="0.482"/>
                                        <GradientStop Color="#FF515151" Offset="1"/>
                                    </LinearGradientBrush>
                                </Ellipse.Stroke>
                            </Ellipse>
                            <ContentPresenter HorizontalAlignment="Center" VerticalAlignment="Center" Grid.ColumnSpan="3" Grid.RowSpan="3"/>
                            <Ellipse Stroke="#FF000000" StrokeThickness="0" HorizontalAlignment="Stretch" Margin="0,0,0,0" VerticalAlignment="Stretch" Width="Auto" Height="Auto" Grid.Column="1" Grid.Row="1" x:Name="ellipse1">
                                <Ellipse.Fill>
                                    <LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
                                        <GradientStop Color="#D8FFFFFF" Offset="0"/>
                                        <GradientStop Color="#15FFFFFF" Offset="0.845"/>
                                    </LinearGradientBrush>
                                </Ellipse.Fill>
                            </Ellipse>
                        </Grid>
                    </Grid>
                </ControlTemplate>
            </Setter.Value>
        </Setter>
        <Setter Property="FontSize" Value="18.667"/>
    </Style>
    
    <LinearGradientBrush x:Key="NormalBrush" EndPoint="0,1" StartPoint="0,0">
        <GradientStop Color="#EEE" Offset="0.0" />
        <GradientStop Color="#CCC" Offset="1.0" />
    </LinearGradientBrush>   
</ResourceDictionary>
    
    
    
    